<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <!-- <HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/> -->
  </div>
</template>

<script lang="ts">
// import { Component, Vue } from 'vue-property-decorator';
// import HelloWorld from './components/HelloWorld.vue';
import {debounce} from "@/index";
// @Component({
//   components: {
//     HelloWorld,
//   },
// })
export default {
  mounted() {
    const ar = [0,1,2,2];
    const ar2 = ar.unique();
    console.log(ar2,21)
    class TestD{
    @debounce(1000)
    fndebounce (): void {
        console.log('fn-debounce')
    }
}

const testa = new TestD()
setInterval(testa.fndebounce,1500);
  }
}
// export default class App extends Vue {
//   mounted() {
//     const ar = [0,1,2,2];
//     const ar2 = ar.unique();
//     console.log(ar2,21)
//   }
// }
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
